package com.ruoyi.procured.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.procured.domain.PaymentRequestProcess;
import com.ruoyi.procured.domain.vo.PaymentRequestProcessVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 申请付款-审核流程Mapper接口
 *
 * @author 刘广帆
 * @date 2024-10-03
*/
@Mapper
public interface PaymentRequestProcessMapper extends BaseMapper<PaymentRequestProcess> {
    /**
     * 查询审核流程
     * @param paymentRequestId
     * @return
     */
    List<PaymentRequestProcessVo> selectPaymentRequestProcessList(String paymentRequestId);

    /**
     * 查询审核流程状态
     * @param paymentRequestId
     * @return
     */
    @Select("SELECT process_status FROM tb_payment_request_process WHERE payment_request_id = #{paymentRequestId}")
    List<String> selectStatusesByPaymentRequestId(@Param("paymentRequestId")String paymentRequestId);
}




